package cn.git.shiro.constant;

/**
 * @description: shiro常量类
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-03-27
 */
public class ShiroJWTConstant {

    /**
     * JWT token
     */
    public static final String JWT_TOKEN_FLAG = "JWT_TOKEN";

    /**
     * json content type
     */
    public static final String JSON_CONTENT_TYPE = "application/json;charset=utf-8";

    /**
     * 访问拒绝时返回的错误码
     */
    public static final Integer ON_ACCESS_DENIED_NUM = 400;

    /**
     * 登录路径
     */
    public static final String LOGIN_PATH = "/shiro/login";

    /**
     * 登出路径
     */
    public static final String LOGOUT_PATH = "/shiro/logout";

    /**
     * 所有路径
     */
    public static final String ALL_PATH = "/**";

    /**
     * jwt过滤器
     */
    public static final String JWT_FILTER = "jwt_filter";

    /**
     * 不需要过滤器处理
     */
    public static final String ANON = "anon";

    /**
     * 1小时
     */
    public static final Integer TIME_HOUR = 3600;

}
